package com.nunbey.lingxi.apis;

import com.nunbey.lingxi.module.mode.record.EcgRecordPost;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * ECG模块的网络接口
 */
public interface EcgApi {
    /**
     * 记录数据并判别
     * @param ecgRecord
     * @return
     */
    @POST("lingxi-api/ECG/recordAndDistinguish")
    public Call<ResponseBody> recordAndDistinguish(@Body EcgRecordPost ecgRecord, @Header("token") String token);

    @GET("lingxi-api/ECG/getRecordList")
    public Call<ResponseBody> getRecordList(@Header("token") String token);

    @POST("lingxi-api/ECG/getRecordByRecordId")
    public Call<ResponseBody> getRecordByRecordId(@Body Long recordId, @Header("token") String token);
}
